Component({
  properties: {
    title: String,
    identifying:String,
    nav: {
      type: String,
      value: ''
    }
  },

  
  data: {
    setHeight: 0
  },
  methods: {
    rollback() {
      if (this.data.identifying != '') {
        wx.navigateTo({
          url: '/pages/index/index'
        })

        return false;
      }

      if (this.data.nav == 'origin') {
        wx.navigateBack({
          delta: 100
        })
      } else {
        wx.navigateBack({
          delta: 1
        })
      }
      
    }
  },

  attached() {
    var self = this
    wx.getSystemInfo({
      success(res) {
        self.setData({
          setHeight: res.statusBarHeight
        })
      }
    })

  }
})